#ifndef BULLET_H
#define BULLET_H
#include "tower.h"
#include <QPixmap>
class Bullet
{
public:
    Bullet(Tower*);
    void UpdataPosition();
    bool CheckPosition();
    float GetX();
    float GetY();
    int GetWidth();
    int GetHeight();
    QPixmap& GetPix();
    QRect GetRect();
    int GetDamage();
    void SetDelete();
    bool GetDelete();
    virtual ~Bullet();
private:
    QPixmap _mPix;
    QRect _mRect;
    int width;
    int height;
    float Position_X;
    float Position_Y;
    int damage;//单颗伤害
    int velocity;//速度
    float direction_x;
    float direction_y;//方向
    bool IfDelete;
};

#endif // BULLET_H
